#!/usr/bin/env python3   
# -*- coding: utf-8 -*-
#time:2018/9/12 14:41
#version:1.0
#_author_:jtst
#  统一规划

"""
统计拦截器
"""

from web.interceptors.Authlnterceptor import *
from web.interceptors.ErrorInterceptor import *



"""
蓝图  对所有url 配置
"""
from application import app
from web.controllers.index import route_index  # 首页
from web.controllers.user.User import route_user # 用户
from web.controllers.static import route_static  # 静态
from web.controllers.account.Account import route_account  #
from web.controllers.finance.Finance import route_finance  # 财务
from web.controllers.food.Food import route_food  # 食物
from web.controllers.member.Member import route_member  # 统计
from web.controllers.stat.Stat import route_stat  #统计
from web.controllers.api import route_api  # 小程序 API  不用 . 是因为直接访问inti
from web.controllers.upload.Upload import route_upload # 可视化编辑器 上传用



# 以‘’ 中为起始，根据引入文件内增加后续路径
app.register_blueprint(route_index,url_prefix='/')
app.register_blueprint(route_user,url_prefix='/user')
app.register_blueprint(route_static,url_prefix='/static')  # 此目录 转到 web下static处理
app.register_blueprint(route_account,url_prefix='/account')
app.register_blueprint(route_finance,url_prefix='/finance')
app.register_blueprint(route_food,url_prefix='/food')
app.register_blueprint(route_member,url_prefix='/member')
app.register_blueprint(route_stat,url_prefix='/stat')
app.register_blueprint(route_api,url_prefix='/api')
app.register_blueprint( route_upload,url_prefix = "/upload" )